package com.systop.service;

import com.systop.dao.NoticeDao;
import com.systop.entity.Notice;

import java.util.ArrayList;

public class NoticeService {

    private NoticeDao noticeDao =new NoticeDao();
    public int add(Notice notice){
        return noticeDao.add(notice);
    }

    public ArrayList<Notice> findAll(){
        return noticeDao.findAll();
    }
}
